<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('system', SystemController::class);
    $router->resource('codeof', CodeOfController::class);
    $router->resource('product', ProductController::class);
    $router->resource('grade', GradeController::class);
    $router->resource('spec', SpecController::class);
    $router->resource('temp', TempController::class);
    $router->resource('pack', PackController::class);
    $router->resource('volume', VolumeController::class);
    $router->resource('circulation', CirculationController::class);
    $router->resource('watercode', WaterCodeController::class);
    $router->resource('gacss', GacssController::class);
    $router->resource('heading', HeadingController::class);
    $router->resource('verify', VerifyController::class);
//    $router->any('system/import', 'SystemController@import');
//    $router->any('system/variety', 'SystemController@variety');
//    $router->any('codeadd/five_excel', 'CodeAddController@excelCreate');
    $router->any('chun-user_excel', 'CodeAddController@chunExcelCreate');
    $router->any('system/chun-import', 'ChunSystemController@chunImport');
    $router->resource('chun-user', 'ChunSystemController');
    $router->any('xin-user_excel', 'CodeAddController@xinExcelCreate');
    $router->any('system/xin-import', 'XinSystemController@xinImport');
    $router->resource('xin-user', 'XinSystemController');
    $router->any('zhen-user_excel', 'CodeAddController@zhenExcelCreate');
    $router->any('system/zhen-import', 'ZhenSystemController@zhenImport');
    $router->resource('zhen-user', 'ZhenSystemController');
});
